<?php echo $header;?>
<div id="content">
  <div class="container">
    <?php if ($error_warning) { ?>
    <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    <?php } ?>
    <div class="panel panel-default">
      <div class="panel-heading">
        <div class="pull-right">
			<h1 class="panel-title"><i class="fa fa-puzzle-piece fa-lg"></i> <?php echo $heading_title; ?></h1>
      </div>
      <div class="panel-body">
		<form action="<?php echo $submit_url; ?>" method="post" enctype="multipart/form-data" id="form-attr">
		  <ul>
		  <?php foreach($sattr as $row){?>
		  <li><span><?php echo $row["name"];?> </span><input type="checkbox" name="sattr[]" value="<?php echo $row["id"]?>" <?php echo $row["status"];?>></li>
		  <?php }?>
		  </ul>
		  <button name="submit" type="submit" form="form-attr" class="btn btn-success"><i class="fa fa-save"></i> Save</button>
          <a href="<?php echo $cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i> Cancel</a></div>
		</form>
      </div>
    </div>
  </div>
</div>
<?php echo $footer;?>